using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Serialization;

namespace Edmx.Storage
{
    [DebuggerDisplay("Name={Name}, EntitySets={EntitySets.Count}, AssociationSets={AssociationSets.Count}")]
    [XmlType(AnonymousType = true, Namespace = EdmxConstants.StorageSchemaNamespace)]
    [XmlRoot(Namespace = EdmxConstants.StorageSchemaNamespace, IsNullable = false)]
    public class EntityContainer : MetadataEntityBase<EntityContainer>
    {
        [XmlElement("EntitySet", typeof(EntitySet))]
        public EntitySetCollection EntitySets { get; set; }

        [XmlElement("AssociationSet", typeof(AssociationSet))]
        public AssociationSetCollection AssociationSets { get; set; }

        [XmlAttribute("Name")]
        public string Name { get; set; }
    }
}